package cn.healthlink.refresh;
import org.springframework.beans.BeansException;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/2/19 18:17
 */
public class MyClassPathXmlApplicationContext extends ClassPathXmlApplicationContext {

	public MyClassPathXmlApplicationContext(String... configLocation) throws BeansException {
		super(configLocation);
	}

	@Override
	protected void initPropertySources() {
		getEnvironment().setRequiredProperties("LG_HOME");
	}
}
